export default () => {
  const ua = window.navigator.userAgent.toLowerCase();
  // tslint:disable-next-line:no-any
  const wx = ua.match(/MicroMessenger/i) as any;
  if (wx) {
    return wx === 'micromessenger';
  }
  return false;
};
